import Taro, { Component } from "@tarojs/taro";
import { Block, View } from "@tarojs/components";
import './Card.scss'

import ContentWrapper from "../ContentWrapper/ContentWrapper";

export interface ICardProps {
    title: any;
    children: any;
}

class Card extends Component<ICardProps, {}> {

    render() {
        const {title} = this.props;
        return (
            <ContentWrapper title={title}>
                <View className='detail_content_container'>
                    <Block>{this.props.children}</Block>
                </View>
                {/*<View className='content_detail'>5555</View>*/}
            </ContentWrapper>
        )
    }
}

export default Card;
